<?php

/**
 * default Components.
 *
 * @package    social
 * @subpackage default
 * @author     Your name here
 * @version    SVN: $Id: Components.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class startComponents extends sfComponents
{


  /**
   * Search form
   * @param sfRequest $request A request object
   */
  public function executePowiadomienia(sfWebRequest $request)
  {
   $this->user = $this->getUser()->getGuardUser();
  }
  public function executeWiadomosci(sfWebRequest $request)
  {
   $this->user = $this->getUser()->getGuardUser();
   $this->unread = Doctrine::getTable('sfSocialMessageRcpt')->countUnreadMessages($this->user);
  }
  
}
